import { createRouter, createWebHashHistory } from 'vue-router'
// import Home from "../views/Home.vue";
// import layout from '../layout/index'

export const routes = [
  {
    path: '/',
    redirect: '/ChargeSet',
  },
  {
    path: '/ChargeSet',
    name: 'ChargeSet',
    component: () => import('../views/ChargeSet/ChargeSet'),
    hidden: true,
  },
  {
    path: '/AfterList',
    name: 'AfterList',
    component: () => import('../views/AfterList/AfterList'),
    hidden: true,
  },
  {
    path: '/ShopUserwpgm',
    name: 'ShopUserwpgm',
    component: () => import('../views/ShopUserwpgm/index'),
    hidden: true,
  },
  {
    path: '/ShopUserwp',
    name: 'ShopUserwp',
    component: () => import('../views/ShopUserwp/ShopUserwp'),
    hidden: true,
  },
  {
    path: '/ShopUserwpuUser',
    name: 'ShopUserwpuUser',
    component: () => import('../views/ShopUserwpuUser/index'),
    hidden: true,
  },
  //
  {
    path: '/word',
    name: 'word',
    component: () => import('../views/word/word'),
    hidden: true,
  },
  {
    path: '/cs',
    name: 'cs',
    component: () => import('../views/cs/index'),
    hidden: true,
  },
  {
    path: '/ChargeCarToPcs',
    name: 'ChargeCarToPcs',
    component: () => import('../views/ChargeCarToPcs/index'),
    hidden: true,
  },
  {
    path: '/RepRecord',
    name: 'RepRecord',
    component: () => import('../views/RepRecord/RepRecord'),
    hidden: true,
  },
  {
    path: '/:pathMatch(.*)*',
    redirect: '/ChargeSet',
    hidden: true,
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router
